package com.xja.cloud.controller;

import com.xja.cloud.entity.ResultVO;
import com.xja.cloud.service.SellerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/seller")
public class SellerController {
    Logger logger = LoggerFactory.getLogger(SellerController.class);
    @Autowired
    private SellerService sellerService;

    @RequestMapping("/list")
    public ResultVO list(){
        logger.info("查询seller");
        return ResultVO.success("查询成功",sellerService.selectList());
    }
}
